#!/bin/bash

pid=`ps -ef|grep log_process-0.0.1-SNAPSHOT.jar|grep -v grep|awk '{print $2}' `
kill -9 $pid

sleep 2s
nohup java -jar log_process-0.0.1-SNAPSHOT.jar > business.log 2>&1 &
tail -1000f business.log